﻿@model IEnumerable<RedSand.Site.Models.RoleCheckListModel>

@if (Model != null)
{
    
    <ul class="cbl-roles @(ViewBag.Enable ? "" : "disabled")">
        @foreach (var item in Model)
        {
            <li>
                <input type="checkbox" name="Check" value="@item.RoleID" id="role-@item.RoleID-@ViewBag.ID-@ViewBag.Enable" @(item.Check ? "checked=checked" : "") @(ViewBag.Enable ? "" : "disabled=disabled") />
                <label for="role-@item.RoleID-@ViewBag.ID-@ViewBag.Enable" >@Html.Action("GetRoleName", new { Name = item.Name })</label>
            </li>
        }
    </ul>
}